package com.algorithm.learning.base.图;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @program: algorithm-learning
 * @description:
 * @author: YuKai Fan
 * @create: 2024/8/28 23:01
 **/
public class Graph {

    /**
     * key表示编号
     * value表示实际的点
     */
    public Map<Integer, Node> nodes;

    /**
     * 表示图上所有的边
     */
    public Set<Edge> edges;

    public Graph() {
        nodes = new HashMap<>();
        edges = new HashSet<>();
    }
}
